<?php

Class Test_input extends Controller
{
    
    function __construct()
    {
        parent::__construct();
        
        // top constructor for every controllers.
        parent::__user();
        
        loader::base_helper('form');
        loader::base('session');
        loader::database();
    }                               
    
    function index()
    {
        parent::__header();
        
        $this->title_tag = 'Input and Session Class Test !! ';
        $this->head_tag  = loader::base_css('example'); 
        
        ob::set_session('test','this is a test session variable !');
        $this->body_tag = ob::session('test').'<br /><br />';
        
        if(user::post('username'))
        $this->body_tag.= '<b>username: </b>' . ob::post('username');
        
        $this->body_tag.= form_open('test/test_input');
        $this->body_tag.= form_input('username',ob::post('username'));
        $this->body_tag.= form_submit('send','Send');
        $this->body_tag.= form_close();
        
        loader::base_view('view_base');
    }

        
} //end of the class.
  
  
?>
